package org.pombo.sqm;

import org.pombo.gtm.PayoffNode;
import org.pombo.gtm.Player;

class PayoffNodeWorstPayoffCalculator implements NodeWorstPayoffCalculator<PayoffNode> {

	private PayoffNode node;
	private Player player;

	PayoffNodeWorstPayoffCalculator(Player player) {
		this.player = player;
	}

	public void setNode(PayoffNode node) {
		this.node = node;
	}

	public double worstPayoff() {
		return this.node.getPayoff(this.player);
	}

}